define(function () {
    return function (goods, now) {
        for (let i = 0; i < goods.length; i++) {
            if (goods[i].id === now.parent().attr("id")) {
                now.parent().remove()
                goods.splice(i, 1)
                localStorage.setItem("goods", JSON.stringify(goods))
            }
        }
    }
});